package com.spark.route.handler.impl;

import com.spark.route.handler.PersonHandler;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.function.ServerRequest;
import org.springframework.web.servlet.function.ServerResponse;

@Component
public class PersonHandlerImpl implements PersonHandler {
    @Override
    public ServerResponse get(ServerRequest serverRequest) {
        return ServerResponse.ok().body("你想要ID："+serverRequest.pathVariable("id"));
    }

    @Override
    public ServerResponse all(ServerRequest serverRequest) {
        return null;
    }

    @Override
    public ServerResponse post(ServerRequest serverRequest) {
        return null;
    }

    @Override
    public ServerResponse put(ServerRequest serverRequest) {
        return null;
    }

    @Override
    public ServerResponse delete(ServerRequest serverRequest) {
        return null;
    }

    @Override
    public ServerResponse getByCountry(ServerRequest serverRequest) {
        return null;
    }
}
